package com.shiliao.framework.ui.recyclerview;

import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.util.AttributeSet;

/**
 * 使用时同时ScrollView 布局设置属性
 * android:fillViewport="true"
 * .smoothScrollTo(0,0);
 * <p>
 * 关于滑动冲突的话，一般这种情况下，都是按照ScrollView 去滑动即可。
 * 设置代码
 * recyclerView.setNestedScrollingEnabled(false);
 * <p>
 * Created by yjl on 2017/7/17.
 */

public class AutoLinearLayoutManager extends LinearLayoutManager {
    private static final String TAG = AutoLinearLayoutManager.class.getSimpleName();


    public AutoLinearLayoutManager(Context context) {
        super(context);
    }

    public AutoLinearLayoutManager(Context context, int orientation, boolean reverseLayout) {
        super(context, orientation, reverseLayout);
    }

    public AutoLinearLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    @Override
    public boolean canScrollVertically() {
        return false;
    }
}


